import { backgroundRepeatOptions } from "../../../lib/const"
const getStyleFormJson = (beforeUpload) => {
  return [
    {
      type: "input",
      label: "看板标题",
      fieldName: "title",
      initialValue: "",
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "number",
      label: "宽度",
      fieldName: "width",
      initialValue: "",
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "number",
      label: "高度",
      fieldName: "height",
      initialValue: "",
      extraConfig: {
        className: "row",
      }
    },
    {
      // type: "color",
      type: "gradient-color",
      label: "背景色",
      fieldName: "backgroundColor",
      initialValue: {color: ['#ff0000', '#ffff00']},
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "upload",
      label: "背景图片",
      fieldName: "backgroundImage",
      initialValue: "",
      beforeUpload,
      extraConfig: {
        className: "row",
        showUploadList: false
      }

    },
    {
      type: "select",
      label: "背景重复",
      fieldName: "backgroundRepeat",
      initialValue: "",
      options: backgroundRepeatOptions,
      extraConfig: {
        className: "row",
      }

    },

  ]
}
export default getStyleFormJson



